package org.sparrow.user.run;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient // 启动 Eureka 客户端
@ComponentScan("org.sparrow") // 自动扫描组件并装配一些 Bean
@MapperScan("org.sparrow.common.mapper") // 指定要变成实现类的接口所在的包
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

}
